Elementor\Modules\Ai\Connect\Ai A

Total Complexity 56
Dependencies 5
Dependents 1
Total lines 656
Lines of code 489
Logical lines of code 136
Comment lines 78
Methods 30
Properties 0

Methods 30

Method Rating Maintainability Complexity Lines of code
generate_layout()
A
39 10 69
get_upload_request_body()
S
52 5 23
get_image_to_image_mask()
S
48 3 36
ai_request()
S
52 3 26
get_image_to_image_out_painting()
S
50 2 29
get_image_to_image()
S
53 2 23
get_image_to_image_replace_background()
S
55 2 20
get_image_to_image_upscale()
S
55 2 20
get_image_to_image_remove_background()
S
56 2 19
get_history_by_type()
S
57 2 17
get_file_payload()
S
59 2 13
get_custom_css()
S
59 1 15
get_text_to_image()
S
58 1 15
store_temp_file()
S
64 2 10
get_cached_usage()
S
64 2 10
get_custom_code()
S
60 1 14
get_edit_text()
S
60 1 14
get_image_prompt_enhanced()
S
61 1 13
get_layout_prompt_enhanced()
S
61 1 13
get_completion_text()
S
61 1 13
delete_history_item()
S
64 1 10
toggle_favorite_history_item()
S
64 1 10
get_title()
S
79 1 3
get_api_url()
S
80 1 3
set_used_gallery_image()
S
65 1 10
set_status_feedback()
S
65 1 10
set_get_started()
S
65 1 10
get_remote_config()
S
65 1 10
get_usage()
S
65 1 10
init()
S
98 1 1